import { createRouter, createWebHistory } from 'vue-router'
import routes from '~pages'

console.log(routes)

// import pcRoutes from './pc'
// const Layout = () => import('./../components/layout/index.vue')
// const Index = () => import('./../views/Index.vue')
// const Utils = () => import('./../views/Utils.vue')
// const NotFound = () => import('./../views/NotFound.vue')

const router = createRouter({
  history: createWebHistory(),
  routes,
  // routes: [
  //   { path: '/', redirect: { name: 'Index' } },
  //   {
  //     path: '/my-ui',
  //     component: Layout,
  //     children: [
  //       { path: '', name: 'Index', component: Index },
  //       { path: 'utils', name: 'Utils', component: Utils },
  //       ...pcRoutes,
  //     ],
  //   },
  //   { path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
  // ],
})

export default router
